#ifndef __TCPSERVER_H_
#define __TCPSERVER_H_



#include "TcpSocket.h"

class DECLSPEC CTCPServer : public CTCPSocket
{
public:
	/**
	 * Start TCP server
	 * @param strIP : server bind ip
	 * @param nPort : server bind port
	 * @param nMaxListen : Allow max client in accept list
	 * @return : Start result
	 */
    int StartServer(const std::string strIP, const int nPort, const int nMaxListen = 10);
    CSocket* Accept();

public:
	CTCPServer();
	~CTCPServer();
};

#endif // !__TCPSERVER_H_